package com.config;

import com.itqf.entity.Student;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/16
 * @Time: 上午11:42
 */
@SpringBootConfiguration  //配置类  等价于 spring的xml配置文件 <beans>
//@Configuration
public class ConfigDemo {



    @Bean  // <bean class="com.itqf.entity.Student">
    public Student StuInfo(){
        Student student = new Student();
        student.setAge(18);
        student.setName("风哥！");
        return  student;
    }

}
